﻿<Page x:Class="CentroVentas.Forms.Proveedor.FrmProveedorCrear"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended"
      mc:Ignorable="d"
      Background="#ECF5EB"
      Title="FrmProveedorCrear"
      Loaded="Page_Loaded">
    <ScrollViewer>
        <extToolkit:BusyIndicator Name="Busy"
                                  IsBusy="False"
                                  BusyContent="Espere...">
            <StackPanel Orientation="Vertical">
                <Grid>
                    <TextBlock Text="Crear Proveedor"
                               FontSize="24"
                               Margin="0,10,20,0"
                               HorizontalAlignment="Right" />
                </Grid>
                <Expander Style="{StaticResource GroupBoxExpander}"
                          Header="Datos principales"
                          IsExpanded="True"
                          Name="ProvCrearExp"
                          Margin="15">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="75" />
                            <ColumnDefinition Width="*" />
                            <ColumnDefinition Width="75" />
                            <ColumnDefinition Width="*" />
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                            <RowDefinition />
                        </Grid.RowDefinitions>
                        <StackPanel Grid.Column="0"
                                    Grid.Row="0"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="RUT:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="1"
                                    Grid.Row="0"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <extToolkit:WatermarkTextBox Name="txtRutProveedor"
                                                         MaxLength="12"
                                                         Width="200"
                                                         Margin="5,5,0,5"
                                                         HorizontalAlignment="Left"
                                                         MaxHeight="30"
                                                         MaxLines="1"
                                                         KeyDown="txtRutProveedor_KeyDown"
                                                         Watermark="Presione enter para buscar..."
                                                         KeyboardNavigation.TabIndex="0" />
                            <Button Name="btnBorrar"
                                    Content="Borrar"
                                    Margin="10,5,0,0"
                                    Width="75"
                                    KeyboardNavigation.TabIndex="1" />
                            <Button Name="btnEditar"
                                    Content="Editar"
                                    Margin="10,5,0,0"
                                    Width="75"
                                    KeyboardNavigation.TabIndex="2" />
                        </StackPanel>
                        <!--
                <StackPanel Grid.Column="2"
                            Grid.Row="0"
                            HorizontalAlignment="Right">
                    <TextBlock Text="Buscar:"
                               Margin="0,5,0,0" />
                </StackPanel>
                <StackPanel Grid.Column="3"
                            Grid.Row="0">
                    <Expander Style="{StaticResource GroupBoxExpander}"
                              Header="Proveedor"
                              IsExpanded="False"
                              Name="ProveedorSeleccionar"
                              Margin="15">
                        <StackPanel Orientation="Vertical">
                            <TextBox Name="txtBuscarProveedor" />
                            <DataGrid x:Name="grilla"
                                      ItemsSource="{Binding}"></DataGrid>
                            
                        </StackPanel>                        
                    </Expander>
                </StackPanel>
                -->
                        <StackPanel Grid.Column="0"
                                    Grid.Row="1"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Nombre:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="1"
                                    Grid.Row="1"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <TextBox Width="450"
                                     Name="txtNombreProveedor"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     KeyboardNavigation.TabIndex="3" />
                        </StackPanel>
                        <StackPanel Grid.Column="2"
                                    Grid.Row="1"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Giro:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="3"
                                    Grid.Row="1"
                                    Orientation="Horizontal"
                                    Margin="0,3"
                                    HorizontalAlignment="Left">
                            <TextBox Width="450"
                                     Name="txtGiroProveedor"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     KeyboardNavigation.TabIndex="4" />
                        </StackPanel>
                        <StackPanel Grid.Column="0"
                                    Grid.Row="3"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Direccion:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="1"
                                    Grid.Row="3"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <TextBox Width="450"
                                     Name="txtDireccion1Proveedor"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     KeyboardNavigation.TabIndex="5" />
                        </StackPanel>
                        <StackPanel Grid.Column="1"
                                    Grid.Row="4"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <TextBox Width="450"
                                     Name="txtDireccion2Proveedor"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     KeyboardNavigation.TabIndex="6" />
                        </StackPanel>
                        <StackPanel Grid.Column="0"
                                    Grid.Row="5"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Region:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="1"
                                    Grid.Row="5"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <ComboBox Name="cboRegion"
                                      Margin="10,5,0,0"
                                      SelectionChanged="cboRegion_SelectionChanged"
                                      KeyboardNavigation.TabIndex="7" />
                        </StackPanel>
                        <StackPanel Grid.Column="0"
                                    Grid.Row="6"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Provincia:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="1"
                                    Grid.Row="6"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <ComboBox Name="cboProvincia"
                                      Margin="10,5,0,0"
                                      SelectionChanged="cboProvincia_SelectionChanged"
                                      KeyboardNavigation.TabIndex="8" />
                        </StackPanel>
                        <StackPanel Grid.Column="0"
                                    Grid.Row="7"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Comuna:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="1"
                                    Grid.Row="7"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <ComboBox Name="cboComuna"
                                      Margin="10,5,0,0"
                                      KeyboardNavigation.TabIndex="9" />
                        </StackPanel>
                        <StackPanel Grid.Column="2"
                                    Grid.Row="7"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Contacto:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="3"
                                    Grid.Row="7"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <TextBox Width="450"
                                     Name="txtContactoProveedor"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     KeyboardNavigation.TabIndex="14" />
                        </StackPanel>
                        <StackPanel Grid.Column="2"
                                    Grid.Row="3"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Correo:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="3"
                                    Grid.Row="3"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <TextBox Width="450"
                                     Name="txtCorreoProveedor"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     KeyboardNavigation.TabIndex="10" />
                        </StackPanel>
                        <StackPanel Grid.Column="2"
                                    Grid.Row="4"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Web:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="3"
                                    Grid.Row="4"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <TextBox Width="450"
                                     Name="txtWebProveedor"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     KeyboardNavigation.TabIndex="11" />
                        </StackPanel>
                        <StackPanel Grid.Column="2"
                                    Grid.Row="6"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Telefono:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="3"
                                    Grid.Row="6"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <TextBox Width="450"
                                     Name="txtTelefonoProveedor"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     KeyboardNavigation.TabIndex="13" />
                        </StackPanel>
                        <StackPanel Grid.Column="2"
                                    Grid.Row="5"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Catalogo:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="3"
                                    Grid.Row="5"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <TextBox Width="450"
                                     Name="txtCatalogoProveedor"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     KeyboardNavigation.TabIndex="12" />
                        </StackPanel>
                        <StackPanel Grid.Column="0"
                                    Grid.Row="8"
                                    HorizontalAlignment="Right">
                            <TextBlock Text="Comentarios:"
                                       Margin="0,5,0,0"
                                       KeyboardNavigation.IsTabStop="False" />
                        </StackPanel>
                        <StackPanel Grid.Column="1"
                                    Grid.Row="8"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <TextBox Width="450"
                                     Name="txtComentariosProveedor"
                                     TextWrapping="Wrap"
                                     VerticalScrollBarVisibility="Auto"
                                     AcceptsReturn="True"
                                     AcceptsTab="False"
                                     Margin="5,0"
                                     HorizontalAlignment="Left"
                                     IsReadOnly="True"
                                     Height="100"
                                     KeyboardNavigation.TabIndex="15" />
                        </StackPanel>
                        <StackPanel Grid.Column="3"
                                    Grid.Row="13"
                                    Orientation="Horizontal"
                                    Margin="0,3">
                            <Button Name="btnAceptar"
                                    Click="btnAceptar_Click"
                                    Content="Aceptar"
                                    Width="200"
                                    KeyboardNavigation.TabIndex="16" />
                        </StackPanel>
                    </Grid>
                </Expander>
            </StackPanel>
        </extToolkit:BusyIndicator>
    </ScrollViewer>
</Page>
